package com.hopes.bizz.poll.monitor.vo;

import com.hopes.bizz.poll.common.constant.enums.PollSysDictEnum;
import com.hopes.bizz.poll.monitor.entity.PollMonitorSiteEntity;
import com.hopes.boss.admin.api.resolver.DictResolver;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author daijie
 * @version 1.0
 * @date 2023/9/21 10:32
 * @Description:
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class PollMonitorSiteByIdVO extends PollMonitorSiteEntity {
    private static final long serialVersionUID = -6831846822951082590L;

    /**
     * 站点大类
     */
    @Schema(description="站点大类")
    private String monitorTypeMain;


    public String getMonitorTypeMainStr() {
        return DictResolver.getItemLabelByValue(PollSysDictEnum.poll_monitor_type, this.monitorTypeMain);
    }
}
